package com.wo.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wo.cloud.admin.dto.SysUserDto;
import com.wo.cloud.admin.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/15 22:43
 * Description:
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    // 根据用户名获取角色信息
    SysUserDto getRoleByUsername(@Param("username") String  username);
}
